package com.yt.base.dao.impl;

import java.util.List;

import com.yt.base.dao.AclCategoryDao;
import com.yt.base.model.AclCategory;
import com.yt.core.dao.GenericDaoImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by liujunshi on 15-1-28.
 */
public class AclCategoryDaoImpl extends GenericDaoImpl<AclCategory, Long> implements AclCategoryDao {

	private final Logger logger = LoggerFactory.getLogger(getClass());

	public AclCategoryDaoImpl() {
		setNameSpace("com.dayima.nose.model.acl_category");
	}

	@Override
	public List<AclCategory> findAll() {
		return getSqlSession().selectList(getNameSpace() + ".findAll");
	}

	@Override
	public List<AclCategory> findByIds(List<Long> ids) {
		return getSqlSession().selectList(getNameSpace() + ".findByIds", ids);
	}
}
